import router from "./index";
import pages from "./pages";

const permissionsRouter =()=>{
    pages.forEach(v => {
        router.addRoute('index', v)
    })
    router.addRoute({
        path: "/:path(.*)+",
        redirect: "/404",
    })
}
permissionsRouter()